<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>SpringMVC 测试页</title>


    <script type="text/javascript" src="/js/jquery.min.js"></script>

<%--    <script>--%>
<%--        $(function () {--%>

<%--            $("#ajaxBtn").bind("click",function () {--%>
<%--                // 发送ajax请求--%>
<%--                $.ajax({--%>
<%--                    url: '/demo/handle07',--%>
<%--                    type: 'POST',--%>
<%--                    data: '{"id":"1","name":"李四"}',--%>
<%--                    contentType: 'application/json;charset=utf-8',--%>
<%--                    dataType: 'json',--%>
<%--                    success: function (data) {--%>
<%--                        alert(data.name);--%>
<%--                    }--%>
<%--                })--%>

<%--            })--%>


<%--        })--%>
<%--    </script>--%>


</head>
<body>
//登录
<form action="${pageContext.request.contextPath}/login"
      method="post" id="loginForm">
    <input type="hidden" name="method" value="login">
    <div class="control-group">
        <div class="controls">
            <div class="input-icon left">
                <i class="icon-user"></i> <input class="m-wrap placeholder-no-fix"
                                                 type="text" placeholder="帐号" id="username" name="username">
            </div>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <div class="input-icon left">
                <i class="icon-lock"></i> <input class="m-wrap placeholder-no-fix"
                                                 type="password" placeholder="密码" id="password" name="password">
            </div>
        </div>
    </div>
    <div class="relogin">
        <!-- 单击登录 -->
        <button type="submit" id="login-submit-btn" class="btn green"
                style="margin-left: 20px">
            登陆 <i class="m-icon-swapright m-icon-white"></i>
        </button>
    </div>
</form>

</body>
</html>
